#元组（tuple）
#有序
#可以包含任意类型对象
#元组是不可变数据类型

# >>> a = ()
# >>> type(a)
# <class 'tuple'>
# >>> a  =(1,2,3)
# >>> type(a)
# <class 'tuple'>
# >>> a = (1)
# >>> type(a)
# <class 'int'>
# >>> a = (1,)
# >>> type(a)
# <class 'tuple'>
# >>> a = tuple()
# >>> a
# ()
# >>> list()
# []
# >>> s = [1,2,3]
# >>> s2 = tuple(s)
# >>> s2
# (1, 2, 3)
# >>> type(s2)
# <class 'tuple'>

tup1 = ("a","cc",[1,2],1,False)
# tup1[0] = 1
tup1[2][0] = 3
print(tup1)

tup2 = ("x","y")
tup3 = tup1 + tup2
print(tup3)